"""
求阶乘 n!
"""

n = eval(input("请输入一个正整数n:"))

i, rlt = 1, 1
while i <= n:
    rlt *= i
    i += 1
print(rlt)
